import request from '@/utils/request'

export default {
  //分页查询评论
  getCommentPage(page, limit, courseId) {
    return request({
      url: `eduservice/commentFront/getCommentPage/${page}/${limit}/${courseId}`,
      method: 'get'
    })
  },
  //添加评论
  addComment(comment) {
    return request({
      url: `eduservice/commentFront/addComment`,
      method: 'post',
      data: comment
    })
  },
  //添加子评论
  addCommentReply(commentReply) {
    return request({
      url: `eduservice/commentFront/addCommentReply`,
      method: 'post',
      data: commentReply
    })
  },
  //添加点赞数
  likeNum(comment) {
    return request({
      url: `eduservice/commentFront/likeNum`,
      method: 'post',
      data: comment
    })
  },
}
